package nc.ui.zb.bidding.view;

import nc.ui.zb.pub.LongTimeTask;
import nc.vo.scm.pu.PuPubVO;
import nc.vo.zb.bidding.BidViewBillVO;
import nc.vo.zb.bidding.BiddingHeaderVO;
import nc.vo.zb.bidding.BiddingTimesVO;

public class ViewBiddingHelper {

	private static String bo = "nc.bs.zb.bidding.view.BidViewBO";

	public static BiddingHeaderVO[] loadDatas1(String userid) throws Exception {
		Class[] ParameterTypes = new Class[] { String.class };
		Object[] ParameterValues = new Object[] { userid };
		Object o = LongTimeTask.callRemoteService("pu", bo, "loadDatas1",ParameterTypes, ParameterValues, 2);
		return o == null ? null : (BiddingHeaderVO[]) o;
	}
	
	public static BiddingTimesVO[] loadTimes(String cbiddingid,String userid) throws Exception {
		Class[] ParameterTypes = new Class[] { String.class,String.class };
		Object[] ParameterValues = new Object[] {cbiddingid,userid };
		Object o = LongTimeTask.callRemoteService("pu", bo, "loadTimes",ParameterTypes, ParameterValues, 2);
		return o == null ? null : (BiddingTimesVO[]) o;
	}

	public static BidViewBillVO[] loadDatas(String userid) throws Exception {
		Class[] ParameterTypes = new Class[] { String.class };
		Object[] ParameterValues = new Object[] { userid };
		Object o = LongTimeTask.callRemoteService("pu", bo, "loadDatas",ParameterTypes, ParameterValues, 2);
		return o == null ? null : (BidViewBillVO[]) o;
	}

	public static String getCvendoridByLogUser(String userid) throws Exception {
		Class[] ParameterTypes = new Class[] { String.class };
		Object[] ParameterValues = new Object[] { userid };
		Object o = LongTimeTask.callRemoteService("pu", "nc.bs.zb.pub.ZbPubBO","getCvendoridByLogUser", ParameterTypes, ParameterValues, 2);
		return PuPubVO.getString_TrimZeroLenAsNull(o);
	}

//	public static boolean reValue() throws Exception {
//		String vendor = ViewBiddingHelper.getCvendoridByLogUser(ClientEnvironment.getInstance().getUser().getPrimaryKey());
//		return true;
//	}

}
